// utils/component/shareGuide/shareGuide.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
    * 组件的初始数据
    */
  data: {
    isFirst: true
  },

  attached: function () {
    try {
      var value = wx.getStorageSync('isFirst')
      if (value == 'false') {
        this.setData({
          isFirst: false
        })
      }
    } catch (e) {
      // Do something when catch error
    }
  },

  /**
   * 组件的方法列表
   */
  methods: {
    btnClick: function (e) {
      wx.setStorage({
        key: "isFirst",
        data: "false"
      });
      this.setData({
        isFirst: false
      })
    },
  }
})
